package com.twotwoshop.service.order.controller;

import com.twotwoshop.domin.common.dtos.ResponseResult;
import com.twotwoshop.domin.order.dtos.OrderDto;
import com.twotwoshop.domin.order.dtos.OrderFindDto;
import com.twotwoshop.service.order.service.OrderService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@RestController
@Slf4j
@RequestMapping("/order/pay")
@RequiredArgsConstructor
public class PayController {

    private final OrderService orderService;

    /**
     *
     * 支付
     *
     * @param
     * @return
     */
    @PostMapping("{id}")
    public ResponseResult downOrder(@PathVariable Long id){

        log.info("支付...{}");

        return orderService.payOrder(id);
    }






}
